<template>
  <div class="page-dialog">
    <el-button type="primary" @click="showDialog = true">打开弹窗</el-button>
    <page-dialog v-if="showDialog" v-model="showDialog" @submit="submit"></page-dialog>
  </div>
</template>

<script>
import pageDialog from "@/components/page-dialog";
export default {
  data() {
    return {
      showDialog: false,
    };
  },
  components: {
    pageDialog,
  },

  created() {},

  methods: {
    // 提交
    submit(value){
      console.log(value);
    }
  },
};
</script>

<style scoped lang='less'>
.page-dialog {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
